/*
 * Copyright(c) 2012 Donghong Inc.
 */
package com.hatic.test;

import org.jxstar.service.note.SenderI;
import org.jxstar.test.AbstractTest;
import org.jxstar.util.config.SystemVar;
import org.jxstar.util.factory.SystemFactory;
import org.jxstar.wf.note.NoteMergeSender;

import com.hatic.sms.PmSender;

/**
 * 短信发送测试。
 *
 * @author TonyTan
 * @version 1.0, 2012-5-24
 */
public class SmsSendMain extends AbstractTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		init("D:\\tomcat6\\webapps\\pm");
		
		NoteMergeSender sender = new NoteMergeSender();
		boolean ret = sender.setMergeNote();
		System.out.println("执行结果：" + ret);
	}

	public static void mytest() {
		String clsName = SystemVar.getValue("sms.note.class", "org.jxstar.service.note.my.MySender");
		System.out.println("clsName：" + clsName);
		SenderI sender = (SenderI) SystemFactory.createObject(clsName);
		String ret = sender.massSend("15890139188", "PM项目短信测试！");
		System.out.println("执行结果：" + ret);
	}
	
	public static void baseTest() {
		PmSender sender = new PmSender();
		String ret = sender.massSend("15890139135", "PM项目短信测试！");
		System.out.println("执行结果：" + ret);
	}
}
